package com.wsd.smartcarwasher.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wsd.smartcarwasher.domain.TCharge;
import com.wsd.smartcarwasher.dao.TChargeMapper;
@Service
public class TChargeService extends ServiceImpl<TChargeMapper, TCharge> {

    /**
     * 获取充值方案
     * @return
     */
    public List<Map<String,Object>> queryPlan() {
        return this.baseMapper.queryPlan();
    }

    /**
     * 根据id查询
     * @param chargeid
     * @return
     */
    public TCharge getChargeById(Integer chargeid) {
       return this.baseMapper.getChargeById(chargeid);
    }
}
